<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>网上支付商户模拟器</title>
<style type="text/css">
<!--
body {
	font-size: 9pt;
	font-style: normal;
	line-height: 20px;
	font-weight: normal;
	font-variant: normal;
	color: #000099;
}
.smallfont {
	font-size: 9pt;
	font-weight: bold;
	color: #FF0000;
}
.bigFont {
	font-size: 16pt;
	font-style: normal;
	font-weight: bolder;
	font-variant: normal;
	color: #000000;
}
.text {
	font-size: 9pt;
	font-style: normal;
	line-height: normal;
	color: #000000;
	background-color: #6699FF;
	letter-spacing: normal;
	word-spacing: normal;
	width: auto;
	border: 1px dotted #CCCCCC;
}
.text1 {
	font-size: 14pt;
	font-weight: bold;
	color: #330099;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: dotted;
	border-left-style: none;
	border-top-color: #FF0000;
	border-right-color: #FF0000;
	border-bottom-color: #FF0000;
	border-left-color: #FF0000;
}
-->
</style>
<script language="JavaScript" src="md5.js">
</script>
<script language="JavaScript"  src="pay1.js">
</script>
</head>

<body bgcolor="#CCCCCC" onLoad="setValue()">
<table width="760" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><form action="" method="post" name="MD5form" id="MD5form" target="_blank">
        <table width="80%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000">
          <tr> 
            <td height="49"> <div align="center"><span class="bigFont">网上银行商户端MD5模拟程序 
                </span><br>
                <span class="smallfont">Vsersion 0.02<br>
                Author : 胡向军<br>
                Create :2010/08/03</span></div></td>
          </tr>
          <tr> 
            <td bordercolor="#CCCCCC" bgcolor="#FFFFFF">
			<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
				<tr>
                  <td height="20">商户接口类型</td>
                  <td height="20">
				  <select name="INTER_FLAG" id="INTER_FLAG" onChange="DOTYPE_onclick()">
				  <option value='0'>旧接口</option>
				  <option value='1'>新接口</option>
				  <option value='3' selected="selected">防钓鱼</option>
				  <option value='4'>防钓鱼二期</option>
				  </select>
				</td>
                </tr>
                <tr> 
                  <td width="26%" height="20" nowrap>商户代码【MERCHANTID】</td>
                  <td width="74%" height="20"><input name="MERCHANTID" type="text" class="text1" id="MERCHANTID"></td>
                </tr>
                <tr> 
                  <td height="20">商户柜台代码【POSID】</td>
                  <td height="20"><input name="POSID" type="text" class="text1" id="POSID"></td>
                </tr>
                <tr> 
                  <td height="20">分行代码【BRANCHID】</td>
                  <td height="20"><input name="BRANCHID" type="text" class="text1" id="BRANCHID"></td>
                </tr>
				
                <tr> 
                  <td height="20">定单号【ORDERID】</td>
                  <td height="20"><input name="ORDERID" type="text" class="text1" id="ORDERID"></td>
                </tr>
                <tr> 
                  <td height="20">付款金额【PAYMENT】</td>
                  <td height="20"><input name="PAYMENT" type="text" class="text1" id="PAYMENT"></td>
                </tr>
				<tr> 
                  <td height="20">币种【CURCODE】</td>
                  <td height="20"><input name="CURCODE" type="text" class="text1" id="CURCODE"></td>
                </tr>
                <tr> 
                  <td height="20">交易码【TXCODE】</td>
                  <td height="20"><input name="TXCODE" type="text" class="text1" id="TXCODE"></td>
                </tr>
                <tr> 
                  <td height="20">备注1【REMARK1】</td>
                  <td height="20"><input name="REMARK1" type="text" class="text1" id="REMARK1"></td>
                </tr>
                <tr>
                  <td height="20">备注2【REMARK2】</td>
                  <td height="20"><input name="REMARK2" type="text" class="text1" id="REMARK2"></td>
                </tr>
                <tr id="PUB32TR" style="display:none"> 
                  <td height="20">公钥前30位【PUB32】</td>
                  <td height="20"><input name="PUB32" type="text" class="text1" id="PUB32"></td>
                </tr>
				 <tr id="PUB32TR1" style="display:none"> 
                  <td height="20">公钥后30位【PUB】</td>
                  <td height="20"><input name="PUB32TR2" type="text" class="text1" id="PUB32TR2"></td>
                </tr>
				<tr id='GATEWAYTR' style='display:none'> 
                  <td height="20">网关类型【GATEWAY】</td>
                  <td height="20"><input name="GATEWAY" type="text" class="text1" id="GATEWAY"></td>
				</tr>
				<tr id='CLIENTIPTR' style='display:none'> 
                  <td height="20">客户端IP【CLIENTIP】</td>
                  <td height="20"><input name="CLIENTIP" type="text" class="text1" id="CLIENTIP" value ="128.128.80.125"></td>
				</tr>

				<tr id='REGINFOTR' style='display:none'> 
                  <td height="20">注册信息【REGINFO】</td>
                  <td height="20"><input name="REGINFO" type="text" class="text1" id="REGINFO" value="xiaofeixia"></td>
				</tr>

				<tr id='PROINFOTR' style='display:none'> 
                  <td height="20">商品信息【PROINFO】</td>
                  <td height="20"><input name="PROINFO" type="text" class="text1" id="PROINFO" value="digital"></td>
				</tr>
                
                <tr id='STOREINFOTR' style='display:none'> 
                  <td height="20">店铺信息【STOREINFO】</td>
                  <td height="20"><input name="STOREINFO" type="text" class="text1" id="STOREINFO"></td>
				</tr>
                
                <tr id='PROTYPETR' style='display:none'> 
                  <td height="20">商品类型【PROTYPE】</td>
                  <td height="20"><input name="PROTYPE" type="text" class="text1" id="PROTYPE"></td>
				</tr>
				
				<tr id='MER_REFERERTR' style='display:none'> 
                  <td height="20">商户域名【REFERER】</td>
                  <td height="20"><input name="MER_REFERER" type="text" class="text1" id="MER_REFERER" value=""></td>
				</tr>
				                <tr> 
                  <td height="20">银行网址【URL】</td>
                  <td height="20">
				  <select name="bankURL" id="bankURL">
		
					<option value='https://ibsbjstar.ccb.com.cn/app/ccbMain' selected='selected'>https://ibsbjstar.ccb.com.cn/CCBIS/ccbMain</option>
					
				
					
			     </select>
				  <br>
                    <span class="smallfont"></span></td>
                </tr>
               
                <tr> 
                  <td height="20" colspan="2"><div align="center"> 
                      <input name="makeMd5" type="button" id="makeMd5" value="生成MD5串" onClick="make()">
                      <input type="button" name="Submit2" value="重置输入数据项" onClick="newRest()">
                    </div></td>
                </tr>
                <tr> 
                  <td height="20" colspan="2"><div align="center"> 
                      <textarea name="result" cols="80" rows="10" wrap="VIRTUAL" class="text" id="result"></textarea>
                    </div></td>
                </tr>
                <tr> 
                  <td height="20"><div align="center"> 
                      <input name="sendB" type="button" id="sendB" onClick="go(window.MD5form.result.value)" value="   发送到银行端   ">
                    </div></td>
                    
                  <td height="20"><div align="center"> 
                      <a href="" id="loacl" name=""  target="_blank" />提交</a>
                    </div></td>
                </tr>
              </table>
			  </td>
          </tr>
        </table>
        <div align="center">相关变量，可以通过对pay.js进行配置</div>
		<input type="hidden" name="MAC" id="MAC" value="">
		<!--
		<input type="hidden" name="URL01" value="">
		<input type="hidden" name="REM1" value="">
		<input type="hidden" name="REM2" value="">
		-->
		<script language="JavaScript">DOTYPE_onclick();</script>
	    </form></td>
  </tr>
</table>
</body>
</html>
<script>

</script>